<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>XiunoPHP 开发手册</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="keywords" content="XiunoPHP 开发手册" />
	<meta name="description" content="XiunoPHP 开发手册 " />
	<meta name="generator" content="Xiuno BBS" />
	<meta name="author" content="Xiuno Team" />
	<meta name="copyright" content="2008-2012 xiuno.com" />
	<meta name="MSSmartTagsPreventParsing" content="True" />
	<meta http-equiv="MSThemeCompatible" content="Yes" />
	<link href="common.css" type="text/css" rel="stylesheet" />
</head>
<body  class="bg1">
	<div class="width big">
		<h1>log.class.php</h1>
		<p>日志记录静态类。</p>
		<ol>
			<li><b>log::write</b>($s, $file = 'phperror.php') 实例：
<pre>
// 写日志，记录在 $conf['log_path'] 中，默认为 log/phperror.php
log::write('日志内容');
</pre>
			</li>
		
			<li><b>log::trace</b>($s) 实例：
<pre>
// 跟踪变量的值，默认会记录到 默认为 log/trace.php 下
log::trace('var');
</pre>
			</li>
		</ol>	
	</div>	



	
	
</body>
</html>
